Fixed handling of strings and escaping in SdlTypedValue