Loaderinfo error with url containing parameter

The extension was equal to everything after the last dot, so if the url contained parameter, the Unrecognized file exception was thrown.