As I said in a comment above. The problem is that NPP tricks you. You just don't see what there really is in a hex mode. Disable 'Autodetect character encoding' in Preferences/MISC menu of NPP and set encoding to ansi or something like that. Hopefully NPP won't play with bytes shown in HEX mode