Fixed escaping of percent signs which are not part of a placeholder