IDN support bugfix

Missing else convert for when there's no http(s)
Fixed tabs vs. spaces