UnicodeDecodeError

Fix #1228