Proper support for passing in arrays
Make given trailing slash optional in non-strict mode