Encode str to bytes before sending to base64.decode.
Custom settings handler for Select Attributes.