Move checking args for newlines from yamlify_arg into parse_input

The key=val was getting split before getting passed to yamlify_arg and
wasn't working.
Merge pull request #11942 from whiteinge/bug-yamlify-arg-with-newline

Move checking args for newlines from yamlify_arg into parse_input