add content encoding to stored strings