fix encoding bug
document head rules and eval param formats