Remove redundant quotes in exception

Indicated in #731.