Added resources for testing utf8 codecs.
Fixed bugs in utf8 codecs.