call of overloaded 'function' is ambigous

char str2[1000];

On which Arduino? On a 328-based machine, that's half your memory.