Stripping padding character in decrypt function