encoding in render partial helper