Fixed and improved escaping of special characters within
Dom.getElementsByAttribute()