basically works now (more or less)

okay, so besides relativizing urls and dealing with unicode this thing
works now