[rest] and [oauth]: change [write( message to [file(.