Using GM_info to access metadata.
Using encodeURIComponent() instead of escape() to handle non-ASCII in player names.