Encoding attempted fix