Make byte prefixes depend on network type. Fixes #2.