Rewrite rules using chars