Sanitize inputs for bluetooth functions