fix passing unicode to Extension