fix error counting whitespace characters toward cipher text length