Encode to base64 in Gatling...

I have few parameters and I am able to feed parameters without any issues but now I am unable to encode to base64 after feeding in run time.