Trim trailing characters

Yeah that seems odd. Maybe an encoding issue?