Two charged with child endangerment