Added new level 3 in order to determine whether non-ASCII should be escaped.