Fixed parsing of unicode codes

This is a fix for issue #2.