limit length of generated URI to 255 chars to prevent a DoS against the QR-Code dialog