detect utf16/32 on linux