bq: fix wrong valid character check

"-" is invalid character and "_" is valid character.

GitHub: fix #142

Reported by zjx20. Thanks!!!