Added an example of encoding with padding.