fix encoding error (thanks @hichris1234)