Changes to the regex used to validate publicIDs.

It now correctly validates the URIs. It was too permissive before.