Fix for pip 1.4

Now pip returns unicode strings and this patch fixes sources sorting.