Added a constructor function for codec-character-streams.