Fix URI parsing.