Remove accidentally-left-in printf.  For bad utf8 return max offset.