rewrite uint2str() and sint2str()