Fix <base> URL

As I understand the relevant standards[1], "../" is not valid in a
URL.

[1] http://www.w3.org/TR/html-markup/base.html
    RFC3987
    RFC3986