Escape the base URL before adding it to the regexp