Fix urldecode() issue to close #1221