[WO-341] Ensure there is a length limit for mime encoded strings

Currently the limit for mime encoded string lengths was not set, which resulted in overly long lines in certain input. This update fixes this by forcing length limits.