Easiest fix would be to remove the long filename limit in Windows:
https://tinyurl.com/m662hpy
UR does replace invalid filename chars when exporting, and if the file was successfully created, the characters that were used must be valid. Maybe some software you're using isn't handling all valid characters?
See here for modifying attributes via SQLite (there are some examples related to item titles):
http://www.kinook.com/Forum/showthread.php?t=2825