Hacking devise

Use `%q` only for strings that contain both single quotes and double quotes.