Allow [ and ] in formspecs by escaping them with \( and \), escape \ with \\.
Also add minetest.formspec_escape(string).