print page fixing for WYSIWYG
encodeURIComponent fix for illegal chars in JSON