Different method for encoding only letters