urldecode: fix the bug print extra newline