Fix padding for multibyte strings.