Fix errors in IDE mode when displaying something containing '%'

If the output contains %, IO#printf will expect additional arguments
with values for these % special values. Let's escape them to avoid that