Fixed bug retrieving sites with tilde character.