fix html_safe problom for rails 3.2.12