Mostly use #encode! instead of #force_encoding.
When checking for formats, ensure that everything is encoded as UTF-8.
Change encoding of all literal strings to UTF-8.
Finish encode