fix error with wrong codepage while downloading page
made canonical urls