Handle UTF-16 -> UTF-8 conversion error.
Resolve #233.
Merge pull request #238 from take-cheeze/wine_reg_fix

Handle UTF-16 -> UTF-8 conversion error.