Bug 1088641: Strip all but the low-bytes of characters when calling base64.encode without a charset.
Merge pull request #1683 from Mossop/bug1088641

Bug 1088641: Strip all but the low-bytes of characters when calling base64.encode without a charset. r=@erikvold