Add special functions to convert character values to valid UTF-16 and back, fixing storing compressed strings to some browsers not supporting invalid UTF-16 cahracters