Encoding bugfix.
Merge branch 'bleeding-jumbo' into memdbg

* bleeding-jumbo:
  Encoding bugfix.