Add with_default_charset helper.
Merge pull request #15381 from zuhao/refactor_actionpack_content_type_test

Add with_default_charset helper.