Include the creation of the social/indexes directory in setup script
Fix some encoding problems
Fix problem with regex checs