Fixing tcprintf issue with %% escaping