Quote input string before creating a new Pattern

This was always broken, but manifests clearly with Windows filesystem
paths:

    C:\Users\alice