Correctly quote regexp-y characters in phrase quoting helper