Cleaner way to test membership in array.
Use url.ParseRequestURI().String() to handle url escaping.