Fix marshaling bug

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