fix encoding bug and rename root action name