This word nowadays can be used to refer to any foreigner not just muslim. And in the past, any person that belonged to non-orthodox confession could be called with this word.