Make the ascii data type handling a bit more robust