fixed encoding bug in webspecs test