Deal with # characters in quoted strings