encode with --no-padding where possible to speed up test