typos - misnamed var
fixed regression in preference_for_charset
added charsets to YAML and JSON guys