Improve handling of signed/unsigned data.