size of part was not being calculated properly if header contained utf-8 characters

...characters.