guessExtension work better than getExtension from Symphony