supporting URIs that are url encoded by decoding the URI before checking for curly braces