return false when beast_encode_file() params amount error