Made getsockopt deal with strings.