Revert "fix encoding of all parts"

This reverts commit 98f9a7c609828a9c57ab4db2fe9c2c826f6d201b.