Stringify errors to prevent server from crashing