encoding & cleanup of bibparser result