Fixes substring on bytes in times.
err[0] -> err.args[0]
fix procedures wrt bytes/str