Improve test coverage for custom escapers and charsets.