Make sure the strings are strings, to prevent invalid JS being generated.