fix issue #5

Make necessary escapes as you can pass plain '#' or '%' now.