Parser: fix premature decoding of encoded words ending with an incomplete multi-byte character
Merge pull request #360 from wavify/fix-incomplete-multibyte

Fix premature decoding of encoded words ending with an incomplete multi-byte character
Merge branch 'upstream' into dev