Pass the stream metadata in a dictionary instead of a raw metadata string.