Fixing issue with ami image name characters in the aws machine provider.