Added implementation of xtu8 function.