Fixes for creating of new tasks (double escape breakes string) and mail debug code