normalize url before storing