Fixed logging statements that would break with parameters containing '%'.