Use a more Rails-friendly file extension
Don't barf if the file is empty
Don't assume there are any word characters at all