Fixing path regex to allow more valid characters.