working copy of get_location. add check when the commodity has a special character