Copying data as char*