Hash and question mark are legal values of a URL.

Allow replace to replace patterns including # and ?.

Our team is using both # and ? marks as part of a URLs used for getting images.
This fix allows the plugin to support this.