x11: fix d&d type conversions + remove \r in paths