Encoding exception on some  devices