Fixed version number check for escape() and unescape()