fix possible unicode-decode error