lib/polkit1.rb - use JavaScript escaping when writing *.rules file