Cast to string to avoid error on rails 4 for method string % {}