Fix PathLocation#to_s and add specs