auto detect stack_trace encoding