Fixes websockets test, and simplifies `(p *PublicKey) UnmarshalText`