Added support for crazy-ass 4 byte chars as well as a test.