fixed regular expression

* psr-0 requires files to be utf-8 encoded. Regular expressions should set the `u` flag accordingly.
* Switched to non-matching parenthesis for parts that are no further used.
* Allow namespaces to contain any valid utf-8 sequence
* Do not force namespaces to be strictly valid in all cases (no character strict whitelist)