Fix for URL split.

Changing line 74 from rtrim to trim makes the resulting URL parts compatible with nginx and behave more like other MVC applications users may encounter.