Apply Spigot's patch: Filter Invalid Names

https://github.com/SpigotMC/Spigot-Server/commit/3cb931a5529a70fda7ed2c90909dbf2ca66224da