Fix semicolon at end of font_formats bug

A semicolon on the end of the font_formats string causes TinyMCE to fail, since it splits off the empty string at the end of the input, and tries to parse it. Simple rtrim in a replace statement fixes it.