Fixing path regex to accept more valid characters.