lets strtolower the scheme and getAllowedSchemes already has the lowercase examples, so that should be find.

the hostname does not matter, and the path indeed is case sensitive.