fixed (toLowerCase) for non-ASCII domains

Please see my previous commit.