Add quoting to error message.

Closes PR14160.