Fix bug in padding unicode, #17105.