Invertible conversion from/to UTF-8 and misc