sys_string_encoding_conversions: add handy functions for conversion