added y_mem_dump_str to pretty-dump memory into a string (maybe for further processing?)