Use the standard library to convert between UTF-8 and UTF-16 where possible