Updated Serialize to work with vectors<char>.