the source of problem for issue #3228 also add test for entire range of valid UTF-16 and test for invalid UTF-16 sequence
the source of problem for issue #3228 also add test for entire range of valid UTF-16