move strtoq into new string files (bug #4740)