Fixed issue with 4-byte characters not being written properly

Resolves issue https://github.com/neitanod/forceutf8/issues/24