Fix encoding since URI does some strange things. Fixes #6