Fix bug in padding unicode, #17105.
auto merge of #17145 : ahmedcharles/rust/unicode, r=alexcrichton