Attempt to fix UTF-8 decode errors