figuring out unicode and hex parsing