MULE-7524: Encoded characters not working when using expressions for dynamic endpoints

_ Applying changes after code review