Fix YAML content type detection for CharSequence

Fixup on dbe2f53a0082bd5c90e8b4d1b8e6eb3cae91e5e8: Support YAML as content type