minor fix in SRG regex
fix non-url characters in paths