Refactored PaddedFixedSizeCodec to support PKCS5/7 style padding