Fix invalid utf-8 sequence when autolinking email

Fix invalid utf-8 sequence when email address string followed by multibyte utf-8 character.