fix(cloudfunc) encode space before render: " " -> "&nbsp;"