feature #82 : fixing error in encoding on the Windows platform