Fixed ip prefix generation to comply with BEP42

Fixes the problem discussed in https://github.com/bittorrent/bootstrap-dht/issues/2 - change is now based off the bootstrap-fixes branch