Allows specifying an endpoint. fixes smore-inc/tinys3#3