Fix reading UTF-8 values