fix unicode decoding problem on sierra