luci-base: fix escaping lua string to js repr