Fixes an issue when the MR branch contains any invalid characters, they are replaced when creating the image