Bugfix: rstrip doesn't strip newline characters.