If URI is not a regex pattern then always sanitise

This fixes the issue of the CMS crashing in Dev mode if the URI is not a regular expression pattern.

Relates to #5.