Fix parsing of utf8 escape character

Parsing was assuming that escape character for utf8 was an integer instead of hexadecimal value.
Update parsing of uft8 escape character for hexadecimal.

This function also verify that hexadecimal value contains 4 characters and return an error in case of.