Fixing encoding in rich_text_filter