preproc: correctly handle quoted strings inside %[...] constructs