Incorrect url parsing

the newline makes the url is corrupted