bugfix for qbox_generate_signature