Fix marshaling bug

Small fix for a bug that marshalLing bug that happens when '|' is present in a marshalled data.