Regex ugly hack for unencoded URIs