fix for buggy escape_javascript when it comes to unicode newline characters