encoding fix
add index; actually insert text