Issue #2509218 by plach, stefan.r, pwolanin, effulgentsia, dawehner, jhedstrom, almaudoh, Wim Leers, subhojit777, iMiksu, alexpott, catch, xjm, lauriii, joelpittet, Cottser: Ensure that SafeString objects can be used in non-HTML contexts