Wrong bug fix: I originally wanted to encode, not decode