Fixes issue with using wrong code page.