Ensure that the mask is well-formed.
Only mask messages from the client, not server.