Discard tags where the key or value are > 32 characters (fixes GH-935)
Add tests for invalid extra data