hopefully fix utf-8 encoding when sending it to swish - remove accented characters before indexing (FIXME: done anyway by swish?) - convert data to JSON with utf8 encoding - remove explicit encode - use bytes to calculate length