Fix off-by-one for 0th char in MoveToFront.encode