fix encoding of all parts