modify u8fgets to use u8wstos