Serializes flash object into response header attributes