Removing potentially problematic '.' and redundant 'php' from namespace