Fix encoding of beacon requests

Previously `_rex_('#')` would break it