formats name @formatted_name to be compatable with uri and uses in place of @name variable so that @name is actual readable name