fixed problem where an saving an empty lua script causes garbage/corrupted characters