fix unicode problem with keyword file input