Wrong number in converting number to utf8

2 byte utf8 range should be 0x800 - 0x10000 
Added tests with chinese characters