client: fix unicode troubles (hopefully)