Issue #1355066 by devuo: Fix Characters like ' and & from being output as ' and & if they come from a substitution.