Fix problem formatting percent symbols.

I noticed that values containing "%" are broken in the error messages. This should fix it.