Fix base64 padding

- Use len rather than RuneCount since there are no multibyte chars in base64
  strings

Signed-off-by: Joseph Palermo <jpalermo@pivotallabs.com>