Fix parse() method to get right URL.

Signed-off-by: Michal Špaček <tupinek@gmail.com>
Fix as_string() method to conformity with previous commit.