Japan has a complicated relationship with foreigners