Auto escape t placeholders

fixes #9046

Is this the way we want to do this?
cc @LukasReschke @PVince81 @karlitschek