optimize interface of reading string from user memory to kernel buffer