Tweak to if condition to not convert UTF8

Otherwise we are UTF8 encoding the UTF8 encoding and special chars can
get messed up