fixes unicode strings in python3
converts relative urls into absolute