Socket.gethostbyname

* Remove hard-coded offset and size for IPv6.
* Replace String#[] by String#byteslice to get address
  from sockaddr string.