Fix bug #1263

Make decode utf-coded string
Don't you want `encode` instead of `decode`?