made char too long exceptions and handled them
updated unittests to test bad data