Fix newline when requesting raw string

Hackish workaround for getting rid of the newline character when raw attribute is set.