Workaround for new line character passing through Javascript Interface