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>
Merge pull request #221 from jpalermo/master

Fix base64 padding