Terminate _gets only when encounter '\n'.

str2byte now will output a '\n' byte before EOF. And _gets will
check '\n' for a line password.
Add str2byte target in Makefile then user can gen byte code easily.