upload errors messages
refactoring: extracting CharacterStream