Trim last return character from moodle base64 string.