Issue #723: saving swf with invalid referenced characters fixed