'#' Character Breaks Query String

I think you need to encode your url so it handles the special characters, like a #. This thread may help: