[#120] Handle some encoding errors