I am developing a web app using Save to Google Drive Button.
I noticed that an error occurs and the file cannot be saved when I press the button if Japanese (or maybe non-ascii) string has been set to "data-filename" parameter.
<script src="https://apis.google.com/js/platform.js"></script>
<div id="button"
class="g-savetodrive"
data-src="<url-of-file>"
data-filename="<non-ascii-file-name>"
data-sitename="<site-name>">
</div>
When this happens you can see an error message in Chrome's console like
931819729-doclist_saver_uploader__ja.js:55
Uncaught TypeError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': Value is not a valid ByteString.
Are there any workarounds?