According to RFC 3986, '[' and ']' are reserved characters. However, Rails 3.0.7 is not escaping them.
This is fixed in master by this commit: https://github.com/rails/rails/commit/52b71c01fd3c8a87152f55129a8cb3234190734a
Can this fix be included in 3.0.x ?