add padding char to encoding and merging