Allow file names with square brackets in them.

Allowing file names to have square brackets in them without showing an error of the form URI::InvalidURIError.