Invalid Byte Sequence fix

This will fix #89.