Be sure that strings are properly output
Padd hexadecimal numbers to 4 digits
Add string <> numeric entity conversion functions