proper URL truncation