Adding field to_string/from_string methods that encode to JSON/YAML strings.

You are right, I can use the separator argument for a more robust approach.