break out unicode decoding so errors can be replaced