Have you tried the equivalent in Python/Jython?
s = "my string\r\nhas multiple lines\r\nbecause it's more readable"