Unicode parsing is wrong for letters

Remove duplicate code.
Fix parsing of utf8 escape character
Fix parsing for ABCDF value and add test for json parsing