correct chainpad's transformation function
correct chainpad's transformation function

addresses RTCHAINPAD-3

Pending further testing, this change will still need
to be corrected in https://github.com/xwiki-contrib/chainpad/

xwiki-labs/cryptpad,xwiki-labs/cryptpad,xwiki-labs/cryptpad