Fix encoding in check test