Avoid errno overwriting converting strings.