Function to transform an Erlang stacktrace to something digestable.