Don't know how the encode bug creeped back int. But fixed it anyway.