Changed the way of string encoding in Base64 related step.