Merge pull request #13 from petertodd/fix-netmagic

Fix network magic to be bytes rather than unicode