[aws] endpoints.rb: strip endpoint