It might not be necessary as user names and group names shouldn't contain special characters, but it is a good practice to do so.