Fixed 'load' and 'dump'

Fixed 'load' and 'dump' for ASCII and UNDEFINED.