Open Terminal, type in:
defaults write com.apple.Safari IncludeDebugMenu 1
Restart Safari, use the debug menu to export your bookmarks.
In Terminal type in:
defaults write com.apple.Safari IncludeDebugMenu 0
Restart Safari again and it will be back to normal.
Open Firefox, import those bookmarks and away you go.