I'm using Security utility for encryption and decryption in CakePHP 3.2. When I call 
Security::encrypt('string', 'key') //key length is 32 or more
method over a string, it returns the encrypted string with some invalid characters like following:
8e88c050ff20cb12984bf1af24b11fc7ada198082c67d6b3da7170572d5bcd54���p���lp���������21ķ�;ܝ�%N�
I want to use this string in url. But it's not working as expected as there are some invalid characters.
Now I want to avoid these characters. Is there any way to avoid these character ?
 
    