IPv6 implementation
Replaces hex2bin
https://github.com/mybb/mybb/issues/111#issuecomment-25051638