[fix] work properly with url.parse()