fix error string conversion in option windows