Fix AMCP templatedata escaping for quotes and backslashes.